<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery-1.4.4.min.js"></script>
<script src="${pageContext.request.contextPath }/js/jquery-2.js"></script>
<script src="${pageContext.request.contextPath }/js/jquery.validate.js"></script>
<script type="text/javascript">
	$(function() {
		$("#editUser").validate({
			rules : {
				'userName' : {
					required : true,
					minlength : 2
				}
			},
			messages : {
				'userName' : {
					required : "请输入姓名",
					minlength : "必须由两个字符组成"
				}
			}
		});
	});
</script>
</head>
<body>

	<s:form action="editUser" namespace="/user" id="editUser">
		<s:hidden name="userId" value="%{userId}"></s:hidden>
		<%-- <s:hidden name="password" value="%{password}"></s:hidden> --%>

		<table cellSpacing=0 cellPadding=5  border=0>
			<tr>
				<td>职工姓名：</td>
				<td>
					<s:textfield name="userName" class="textbox" id="" style="WIDTH: 180px" maxLength="50" />
				</td>
			</tr>
			<tr>
				<td>登录密码：</td>
				<td>
					<s:textfield name="password" class="textbox" id="" style="WIDTH: 180px" maxLength="50" />
				</td>
			</tr>
			<tr>
				<td rowspan=2>
					<s:submit value="提交" />
					<%-- <input type=submit value=" 保存 " > --%>
				</td>
			</tr>

		</table>
	</s:form>
</body>
</html>